package function

import "fmt"

type Add func(a int, b int) int

func process(adder Add) int {
	return adder(1, 2)
}

func Functional() {
	f := func(a int, b int) int {
		return a + b
	}
	fmt.Println(process(f))
}
